package com.bw.zhuangao5___day002.UI.Login;

import com.bw.mvp.P.BannerPretenter;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;

/**
 * create by ertu
 * create on 2021/9/13
 * description
 */
public class LoginPretenter extends BannerPretenter<LoginContion.loginview,LoginContion.loginmodel> {


    public LoginPretenter(LoginContion.loginview view, LoginContion.loginmodel model) {
        super(view, model);
    }


    public  void  dologing(String zhangd)
    {
        model.getloginmodel(zhangd, new Observer<LoginClass>() {
            @Override
            public void onSubscribe(Disposable d) {

            }

            @Override
            public void onNext(LoginClass loginClass) {
                view.getloginview(loginClass);
            }

            @Override
            public void onError(Throwable e) {

            }

            @Override
            public void onComplete() {

            }
        });
    }
}
